<template>
</template>
<script>
import axios from 'axios'
//wx27a54ca734af2cf8
//zqdn.aegis-s.com.rndcn.com
export default {
    name: 'registtpl',
    mounted() {
            axios.get('/wx/getcodeurl', {
                    params: { 'Appid': 'wx27a54ca734af2cf8','redirect_uri': 'http://zqdn.aegis-s.com/wx/getwxusertoex' }
                }).then(function(response) {
                    //引导用户根据地址获取code
                    location.href= response.data;
                }).catch(function(error) {　　
                    console.log(error);　
            });
        }
}
</script>